package com.woniu.smart.controller;

import com.woniu.smart.service.CarTypeService;
import com.woniu.smart.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：zhulongxing
 * @date ：Created in 2022/10/29 19:53
 * @description：
 * @modified By：
 * @version: $
 */
@RestController
@RequestMapping("carTypes")
public class CarTypeController {
    @Autowired
    private CarTypeService carTypeService;
    @PostMapping("")
    public Result selectAll(){
        return Result.ok().data("carTypeList",carTypeService.selectAll());
    }
}
